<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Class template lagged_fibonacci_engine</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../boost_random/reference.html#doxygen.headers.lagged__fibonacci_8hpp" title="Header &lt;boost/random/lagged_fibonacci.hpp&gt;">
<link rel="prev" href="classboost_1_1random_1_1lagged__fibonacci__01__engine.html" title="Class template lagged_fibonacci_01_engine">
<link rel="next" href="lagged__fibonacci_8hpp_1a638258aa37c381afde036154b21dd8f7.html" title="Type definition lagged_fibonacci607">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1random_1_1lagged__fibonacci__01__engine.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#doxygen.headers.lagged__fibonacci_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="lagged__fibonacci_8hpp_1a638258aa37c381afde036154b21dd8f7.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class template lagged_fibonacci_engine</span></h2>
<p>boost::random::lagged_fibonacci_engine</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../boost_random/reference.html#doxygen.headers.lagged__fibonacci_8hpp" title="Header &lt;boost/random/lagged_fibonacci.hpp&gt;">boost/random/lagged_fibonacci.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> UIntType<span class="special">,</span> <span class="keyword">int</span> w<span class="special">,</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> p<span class="special">,</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> q<span class="special">&gt;</span> 
<span class="keyword">class</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">UIntType</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ac6a61f95c677e32c78896a7dc869af32"></a><span class="identifier">result_type</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#id-1_3_32_5_6_23_1_1_2_9-bb">public static functions</a></span>
  <span class="keyword">static</span> <span class="identifier">result_type</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1aeb6238dc7b95b8b1ca65f3c3f599713c"><span class="identifier">min</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="identifier">result_type</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1abcfb16d7a8c6536443b5d28cfc373fd6"><span class="identifier">max</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#id-1_3_32_5_6_23_1_1_2_10-bb">public member functions</a></span>
  <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a08d4dc9ca4281f6c6dc3823757e49041"><span class="identifier">lagged_fibonacci_engine</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">explicit</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a217014d7d759a8847d89042568d948d2"><span class="identifier">lagged_fibonacci_engine</span></a><span class="special">(</span><span class="identifier">UIntType</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">explicit</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a175e5c1f12ff8be1b81bf9c51b0c1a77"><span class="identifier">lagged_fibonacci_engine</span></a><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a1d6ee752e2a765ffac6f218155964e74"><span class="identifier">lagged_fibonacci_engine</span></a><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">It</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a631afad8123b77d4948de04c111f29e2"><span class="identifier">seed</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a14bfe6fe27da6a707437477ee2be504c"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">UIntType</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ae9289b65d5e4fcc8f0cadf1b9973bd1b"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1adba6871fcfce0df768e17d88aea607ff"><span class="identifier">seed</span></a><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span><span class="special">,</span> <span class="identifier">It</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">result_type</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a819e7657f570a37d904467bcfaed447c"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a05990155eab57fe2146620c91b8f3855"><span class="identifier">generate</span></a><span class="special">(</span><span class="identifier">Iter</span><span class="special">,</span> <span class="identifier">Iter</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a62a11cbff391c264e9b9970577386640"><span class="identifier">discard</span></a><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uintmax_t</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#id-1_3_32_5_6_23_1_1_2_11-bb">friend functions</a></span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a8dfd1ec3c24ac82be890815fe1e58a50"><span class="keyword">operator</span><span class="special">&lt;&lt;</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
               <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
    <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
    <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ab2e5945bc5616566ddb03c47c07cf6d4"><span class="keyword">operator</span><span class="special">&gt;&gt;</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">,</span> 
               <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ae65f545a77414d7a60360ddfd10c3456"><span class="keyword">operator</span><span class="special">==</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span><span class="special">,</span> 
                  <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a9d62305f7fdc640e034825b32a28e883"><span class="keyword">operator</span><span class="special">!=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span><span class="special">,</span> 
                  <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">bool</span> <span class="identifier">has_fixed_range</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">int</span> <span class="identifier">word_size</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">long_lag</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">short_lag</span><span class="special">;</span>
  <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">UIntType</span> <span class="identifier">default_seed</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.32.5.6.22.4.4"></a><h2>Description</h2>
<p>Instantiations of class template  <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> model a  <a class="link" href="../../boost_random/reference.html#boost_random.reference.concepts.pseudo_random_number_generator" title="Pseudo-Random Number Generator">pseudo-random number generator</a> . It uses a lagged Fibonacci algorithm with two lags <code class="computeroutput">p</code> and <code class="computeroutput">q:</code> x(i) = x(i-p) + x(i-q) (mod 2<sup>w</sup>) with p &gt; q. </p>
<div class="refsect2">
<a name="id-1.3.32.5.6.22.4.4.3"></a><h3>
<a name="id-1_3_32_5_6_23_1_1_2_9-bb"></a><code class="computeroutput">lagged_fibonacci_engine</code> public static functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">result_type</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1aeb6238dc7b95b8b1ca65f3c3f599713c"></a><span class="identifier">min</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Returns the smallest value that the generator can produce. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">static</span> <span class="identifier">result_type</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1abcfb16d7a8c6536443b5d28cfc373fd6"></a><span class="identifier">max</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Returns the largest value that the generator can produce. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.32.5.6.22.4.4.4"></a><h3>
<a name="id-1_3_32_5_6_23_1_1_2_10-bb"></a><code class="computeroutput">lagged_fibonacci_engine</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a08d4dc9ca4281f6c6dc3823757e49041"></a><span class="identifier">lagged_fibonacci_engine</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Creates a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a></code> and calls <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html#doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a631afad8123b77d4948de04c111f29e2">seed()</a></code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">explicit</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a217014d7d759a8847d89042568d948d2"></a><span class="identifier">lagged_fibonacci_engine</span><span class="special">(</span><span class="identifier">UIntType</span> value<span class="special">)</span><span class="special">;</span></pre>
<p>Creates a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a></code> and calls <code class="computeroutput">seed(value)</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">explicit</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a175e5c1f12ff8be1b81bf9c51b0c1a77"></a><span class="identifier">lagged_fibonacci_engine</span><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span> seq<span class="special">)</span><span class="special">;</span></pre>
<p>Creates a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a></code> and calls <code class="computeroutput">seed(seq)</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a1d6ee752e2a765ffac6f218155964e74"></a><span class="identifier">lagged_fibonacci_engine</span><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">It</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Creates a new <code class="computeroutput"><a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a></code> and calls <code class="computeroutput">seed(first, last)</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a631afad8123b77d4948de04c111f29e2"></a><span class="identifier">seed</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Calls <code class="computeroutput">seed(default_seed)</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a14bfe6fe27da6a707437477ee2be504c"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">UIntType</span> value<span class="special">)</span><span class="special">;</span></pre>
<p>Sets the state of the generator to values produced by a  <code class="computeroutput"><a class="link" href="linear__congruential_8hpp_1a6009d4fb4d0382ebf16a5ff5fb58596a.html" title="Type definition minstd_rand0">minstd_rand0</a></code>  generator. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> SeedSeq<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ae9289b65d5e4fcc8f0cadf1b9973bd1b"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">SeedSeq</span> <span class="special">&amp;</span> seq<span class="special">)</span><span class="special">;</span></pre>
<p>Sets the state of the generator using values produced by seq. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> It<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1adba6871fcfce0df768e17d88aea607ff"></a><span class="identifier">seed</span><span class="special">(</span><span class="identifier">It</span> <span class="special">&amp;</span> first<span class="special">,</span> <span class="identifier">It</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Sets the state of the generator to values from the iterator range [first, last). If there are not enough elements in the range [first, last) throws <code class="computeroutput">std::invalid_argument</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">result_type</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a819e7657f570a37d904467bcfaed447c"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Returns the next value of the generator. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Iter<span class="special">&gt;</span> <span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a05990155eab57fe2146620c91b8f3855"></a><span class="identifier">generate</span><span class="special">(</span><span class="identifier">Iter</span> first<span class="special">,</span> <span class="identifier">Iter</span> last<span class="special">)</span><span class="special">;</span></pre>
<p>Fills a range with random values </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a62a11cbff391c264e9b9970577386640"></a><span class="identifier">discard</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">uintmax_t</span> z<span class="special">)</span><span class="special">;</span></pre>
<p>Advances the state of the generator by <code class="computeroutput">z</code>. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.32.5.6.22.4.4.5"></a><h3>
<a name="id-1_3_32_5_6_23_1_1_2_11-bb"></a><code class="computeroutput">lagged_fibonacci_engine</code> friend functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
  <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a8dfd1ec3c24ac82be890815fe1e58a50"></a><span class="keyword">operator</span><span class="special">&lt;&lt;</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> os<span class="special">,</span> 
             <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span> f<span class="special">)</span><span class="special">;</span></pre>
<p>Writes the textual representation of the generator to a <code class="computeroutput">std::ostream</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> CharT<span class="special">,</span> <span class="keyword">typename</span> Traits<span class="special">&gt;</span> 
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> 
  <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ab2e5945bc5616566ddb03c47c07cf6d4"></a><span class="keyword">operator</span><span class="special">&gt;&gt;</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_istream</span><span class="special">&lt;</span> <span class="identifier">CharT</span><span class="special">,</span> <span class="identifier">Traits</span> <span class="special">&gt;</span> <span class="special">&amp;</span> is<span class="special">,</span> 
             <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span> f<span class="special">)</span><span class="special">;</span></pre>
<p>Reads the textual representation of the generator from a <code class="computeroutput">std::istream</code>. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1ae65f545a77414d7a60360ddfd10c3456"></a><span class="keyword">operator</span><span class="special">==</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span> x_<span class="special">,</span> 
                <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span> y_<span class="special">)</span><span class="special">;</span></pre>
<p>Returns true if the two generators will produce identical sequences of outputs. </p>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.headers.classboost_1_1random_1_1lagged__fibonacci__engine_1a9d62305f7fdc640e034825b32a28e883"></a><span class="keyword">operator</span><span class="special">!=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span> lhs<span class="special">,</span> 
                <span class="keyword">const</span> <a class="link" href="classboost_1_1random_1_1lagged__fibonacci__engine.html" title="Class template lagged_fibonacci_engine">lagged_fibonacci_engine</a> <span class="special">&amp;</span> rhs<span class="special">)</span><span class="special">;</span></pre>
<p>Returns true if the two generators will produce different sequences of outputs. </p>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2000-2005 Jens Maurer<br>Copyright © 2009, 2010 Steven Watanabe<br>Copyright © 2022-2025 Matt
      Borland<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="classboost_1_1random_1_1lagged__fibonacci__01__engine.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../boost_random/reference.html#doxygen.headers.lagged__fibonacci_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="lagged__fibonacci_8hpp_1a638258aa37c381afde036154b21dd8f7.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
